import pygrib

grbs = pygrib.open('GLDAS_273.grb')

grb = grbs.message(24)

# get the lat lons
lats,lons = grb.latlons()
#lons = grb.keys()

f = open('values_keys_273.txt','w')

for row in lons:
   for cell in row:
#	f.write( str(row) )
#	f.write('\n')
	print str(cell) 

f.close()

